﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>鼠标控制窗口开关</title>
    <script type="text/javascript">
        function winopen()    //打开窗口的方法
        {
            //注意新窗口的名称
            msg=open("http://www.baidu.com","baidu","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=200,height=250");
        }
    </script>
</head>
<body>
<a href="" onMouseOver="winopen(); " onMouseOut="msg.close();">看看窗口的变化</a>
</body>
</html>